import Vue from 'vue'
import { loadStyle } from '@/util/util'
import * as urls from '@/config/env'
import { iconfontUrl, iconfontVersion } from '@/config/env'

// 加载相关url地址
Object.keys(urls).forEach(key => { Vue.prototype[key] = urls[key] })
// 动态加载阿里云字体库
iconfontVersion.forEach(ele => { loadStyle(iconfontUrl.replace('$key', ele)) })